<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 朱亚杰 <zhuyajie@topthink.net>
// +----------------------------------------------------------------------
namespace Admin\Controller;
use Common\Controller\AdminbaseController;

class ModelController extends AdminbaseController {

    function _initialize() {
    	parent::_initialize();
    	$this->db=M("Model");
    }
    
	function index() {
	
		$v= $this->db->where("status=1")->order("id")->select ();
		

		$this->assign ( "data", $v );
		
		
		$this->display ();
	}
   
    


}

?>
